Platform Explorer / Nuxeo Platform 2023.9

Component org.nuxeo.binary.metadata

Resolution Order

75
The resolution order represents the order in which this component has been resolved by the Nuxeo Runtime framework.
You can influence this order by adding "require" tags in your component declaration, to make sure it is resolved after another component.

Start Order

779
The start order represents the order in which this component has been started by the Nuxeo Runtime framework.
This number is interesting to tweak if your Java component interacts with other components, and needs to be started before or after another one.
It can be changed by implementing the method "Component#getApplicationStartedOrder()" on your Java component: components are sorted according to this reference value, in increasing order.
The default value is 1000, and the repository initialization uses number 100. Negative values can also be used.

Implementation

Class: org.nuxeo.binary.metadata.internals.BinaryMetadataComponent

Services

Extension Points

Contributions

XML Source

<?xml version="1.0"?>
<component name="org.nuxeo.binary.metadata">
  <implementation
          class="org.nuxeo.binary.metadata.internals.BinaryMetadataComponent"/>
  <service>
    <provide
            interface="org.nuxeo.binary.metadata.api.BinaryMetadataService"/>
  </service>

  <extension-point name="metadataProcessors">
    <object class="org.nuxeo.binary.metadata.internals.MetadataProcessorDescriptor"/>
    <documentation>
      <code>
        <processor id="exifTool"
                   class="org.nuxeo.binary.metadata.ExifToolProcessor"
                   prefix="true"/>
      </code>
    </documentation>
  </extension-point>

  <extension-point name="metadataMappings">
    <object
            class="org.nuxeo.binary.metadata.internals.MetadataMappingDescriptor"/>
    <documentation>
      <code>
        <metadataMapping id="xmp" processor="exifTool" blobXPath="file:content"
                         ignorePrefix="true">
          <metadata name="tiff:ImageWidth" xpath="xmp:ImageWidth"/>
          <metadata name="tiff:ImageLength" xpath="xmp:ImageLength"/>
          <metadata name="xmp:CreatorTool" xpath="xmp:CreatorTool"/>
        </metadataMapping>
      </code>
    </documentation>
  </extension-point>

  <extension-point name="metadataRules">
    <object
            class="org.nuxeo.binary.metadata.internals.MetadataRuleDescriptor"/>
    <documentation>
      <code>
        <rule id="default" order="0" enabled="true" async="false">
          <metadataMappings>
            <metadataMapping-id>xmp</metadataMapping-id>
          </metadataMappings>
          <filters>
            <filter-id>hasXMPFacet</filter-id>
          </filters>
        </rule>
      </code>
    </documentation>
  </extension-point>


  <extension target="org.nuxeo.ecm.core.event.EventServiceComponent"
             point="listener">
    <listener name="binaryMetadataSyncListener"
              class="org.nuxeo.binary.metadata.internals.listeners.BinaryMetadataSyncListener"
              priority="100">
      <event>aboutToCreate</event>
      <event>documentCreated</event>
      <event>beforeDocumentModification</event>
    </listener>
  </extension>

  <extension target="org.nuxeo.ecm.core.operation.OperationServiceComponent"
             point="operations">
    <operation
            class="org.nuxeo.binary.metadata.internals.operations.WriteMetadataToBinaryFromDocument"/>
    <operation
            class="org.nuxeo.binary.metadata.internals.operations.WriteMetadataToBinaryFromContext"/>
    <operation
            class="org.nuxeo.binary.metadata.internals.operations.TriggerMetadataMappingOnDocument"/>
    <operation
            class="org.nuxeo.binary.metadata.internals.operations.ReadMetadataFromBinaryToContext"/>
    <operation
            class="org.nuxeo.binary.metadata.internals.operations.ReadMetadataFromBinary"/>

  </extension>

</component>